home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_5.lha
/
7_5
/
7_5a1_line.c
next >
Wrap
Text File
|
1993-08-08
|
506b
|
25 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Exercise 7.5
/ Rectangle derived from a line.
/ The data is in the public name space.
lass line : public shape
ublic:
/* do not use this data unless you really have to */
point w, e;
point north();
point east();
point south();
point west();
void move(int a, int b);
void draw();
line(point a, point b);
line(point a, int l);
;